import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/working_personnel_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/working_personnel_entity.g.dart';

@JsonSerializable()
class WorkingPersonnelEntity {

	WorkingPersonnelEntity();

	factory WorkingPersonnelEntity.fromJson(Map<String, dynamic> json) => $WorkingPersonnelEntityFromJson(json);
	String? operatorUserId;
	String? operatorUserName;
	/// 0:作业人, 1: 作业负责人 2:监护人
	int? operatorType;
	String? operatorUserAvatar;
	String? operatorCertificateId;
	String? operatorCertificateNumber;
	String? operatorCertificateUrl;

	Map<String, dynamic> toJson() => $WorkingPersonnelEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}